package com.itheima.api.map.demo01;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class MapDemo01 {

    public static void main(String[] args) {

        Map<String, String> map = new HashMap<String, String>();

        map.put("段誉", "王语嫣");
        map.put("乔峰", "阿朱");
        map.put("虚竹", "天山童姥");

        Set<String> set = map.keySet();
        for(String s : set) {
            String s1 = map.get(s);
            System.out.println(s + "----" + s1);
        }

    }

}
